cURL
curl --request GET \ --url https://agent-prod.studio.lyzr.ai/v2/agent/{agent_id} \ --header 'x-api-key: <api-key>'
{ "id": "67e3aff94c4db47d2999cdef", "name": "Sample Agent", "description": "This is an example agent response" }
Retrieve agent details using the agent ID.
/v3/agents/{agent_id}
x-api-key
agent_id
curl -X GET "https://agent-prod.studio.lyzr.ai/v3/agents/{agent_id}" -H "accept: application/json" ^ -H "x-api-key: sk-default-REPLACED-API-KEY"
{ "agent_id": "67e21aecd0da0fb69fe95780", "name": "Finance Advisor", "description": "Personalized Financial Planning Assistant", "model": "gpt-4o-mini", "provider_id": "OpenAI", "features": [...] }
The ID of the agent to retrieve.
Agent retrieved successfully
"67e3aff94c4db47d2999cdef"
"Sample Agent"
"This is an example agent response"